package com.lening.community.service.impl;

import com.lening.common.base.BaseServiceImpl;
import com.lening.community.dto.AreaDto;
import com.lening.community.mapper.AreaMapper;
import com.lening.community.pojo.Area;
import com.lening.community.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo: 行政单位信息业务逻辑实现类
 * @Author：马高辉
 * @date: 2024/3/4 14:32
 */
@Service
public class AreaServiceImpl extends BaseServiceImpl<AreaMapper, Area, AreaDto> implements AreaService {

    @Autowired(required = false)
    private AreaMapper areaMapper;

    /**
     * 查询行政单位信息
     * @param pid
     * @return
     */
    @Override
    public List<Area> getAreaByPid(Integer pid) {
        return areaMapper.getAreaByPid(pid);
    }
}
